$(document).ready(function(){
	$('#name').text(sessionStorage.getItem("name"));
	getvideo();
});
function getvideo(){
	$.ajax({  
		url: "../../unite_platform/mobile_page/get_video"
		,type:'post'
		,async: false
		,contentType: "application/json; charset=utf-8"
		,data:JSON.stringify({"id":id}) 
		,dataType:'json'
		,success: function(res){
			console.log(res);
			$('#videodiv').append(
					'<video style="width:100%;height:'+(window.screen.height-55)+'px" src="'+res.data[0].video+'" controls="controls"></video>'
			);
			if(res.data[0].shopcode == '0' || res.data[0].shopcode == 0){
				$('#shopname').text("所有门店        ");
			}else{
				$('#shopname').text(res.data[0].shopcode+res.data[0].deptname);
			}
		}
	});
}